package com.example.agricultural_big_data.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * ClassName:URLConfig
 * Package:com.example.agricultural_big_data.config
 * Description:
 *
 * @Data:2022/5/19 12:54
 */
@Configuration
public class URLConfig implements WebMvcConfigurer {

//    @org.springframework.beans.factory.annotation.Value("${pictureFile.path}")
//    private String picturePath;
//
//    @Value("${pictureFile.path-mapping}")
//    private String picturePath_mapping;
//
//    @Override
//    public void addResourceHandlers(ResourceHandlerRegistry registry) {
//        registry.addResourceHandler(picturePath_mapping+"**").addResourceLocations("file:"+picturePath);
//
//    }

}
